:root {
    --glass-bg: rgba(255, 255, 255, 0.9);
    --primary-gradient: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
    --radius-xl: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background: url('/static/imgs/back.jpg') fixed;
    background-size: cover;
    min-height: 100vh;
    padding: 2rem;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
}

/* 搜索栏 */
.search-bar {
    position: relative;
    max-width: 600px;
    margin: 2rem auto;
}

.search-input {
    width: 100%;
    padding: 1.2rem 2rem;
    border: none;
    border-radius: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-lg);
    font-size: 1.1rem;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

/* 卡片网格布局 */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* 收藏卡片 */
.post-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.card-media {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .card-media img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-excerpt {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(127, 140, 141, 0.1);
}

.action-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.action-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.action-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* 空状态提示 */
.empty-state {
    text-align: center;
    padding: 4rem;
    color: #95a5a6;
}

/* 加载动画 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }
}

.view-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.view-button i {
    margin-right: 0.5rem;
}

.view-button:hover {
    opacity: 0.9;
}